package com.purax.pms.bean.bo;


import com.purax.pms.common.bo.TreeBo;

import java.util.List;

/**
 * <p>
 * 权限资源
 * </p>
 *
 * @author alex
 */
public class SysResource extends TreeBo<SysResource, Long> {

    /**
     * 编码;唯一编码，用于区分资源
     */
    private String code;

    /**
     * 资源名
     */
    private String name;

    /**
     * 类型;
     *  [10-菜单 20-链接]
     */
    private String type;

    /**
     * 描述
     */
    private String describe;

    /**
     * 路径
     */
    private String path;


    /**
     * 是否公共资源;
     *  无需分配所有人就可以访问的
     */
    private Boolean isPublic;

    /**
     * 状态;[0-禁用 1-启用]
     */
    private Boolean state;


    /**
     * 是否默认
     */
    private Boolean isDef;


    /**
     * 所属的角色
     */
    private List<SysRole> sysRoles;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Boolean getPublic() {
        return isPublic;
    }

    public void setPublic(Boolean aPublic) {
        isPublic = aPublic;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Boolean getDef() {
        return isDef;
    }

    public void setDef(Boolean def) {
        isDef = def;
    }

    public List<SysRole> getSysRoles() {
        return sysRoles;
    }

    public void setSysRoles(List<SysRole> sysRoles) {
        this.sysRoles = sysRoles;
    }
}
